import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    device: null,
    scrollTop: 0
  },
  mutations: {
    setDevice(state, msg) {
      state.device = msg;
    },
    setScrollTop(state, msg) {
      state.scrollTop = msg;
    }
  },
  actions: {},
  modules: {}
});
